<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
	<div region="center" style="padding:1px;">
		<t:datagrid name="zyEquipmentTypeList" checkbox="false" fitColumns="false" title="设备类型" treegrid="true" pagination="false" onDblClick="dbClick"
			actionUrl="zyEquipmentTypeController.do?dataGridOfChooseEquipmentType" idField="id" fit="true" queryMode="group">
		   <t:dgCol title="主键"  field="id"  hidden="true" treefield="id"	 width="120"></t:dgCol>
		   <t:dgCol title="机型名"  field="typeDesc" 		treefield="text"	width="120"></t:dgCol>
		</t:datagrid>
	</div>
</div>
<script type="text/javascript">
function dbClick(data){
	$("#equipmentTypeId",top.myWindow.document).val(data.id);
	$("#equipmentTypeName",top.myWindow.document).val(data.text);
	frameElement.api.close();
}
</script>